@inherits StudioComponentBase
@inject ILocalizer Localizer

@{
    var inputDescriptor = EditorContext.InputDescriptor;
    var displayName = inputDescriptor.DisplayName;
    var description = inputDescriptor.Description;
}

<ExpressionInput EditorContext="@EditorContext">
    <ChildContent>
        <MudField Label="@Localizer[displayName]" Variant="Variant.Outlined" HelperText="@Localizer[description]" Margin="Margin.Dense" Disabled="EditorContext.IsReadOnly">
            @foreach (var item in _checkListItems)
            {
                <MudCheckBox T="bool" Label="@item.Text" Value="@item.IsChecked" ValueChanged="@(state => OnCheckedChanged(item, state))" Dense="true" Disabled="EditorContext.IsReadOnly"></MudCheckBox>
            }
        </MudField>
    </ChildContent>
</ExpressionInput>